﻿
var FCA = {
    "setColumn2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Column2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setColumn3D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Column3D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setArea2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Area2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setBar2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Bar2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setCandlestick": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Candlestick.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setDoughnut2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Doughnut2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setFunnel": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Funnel.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setGantt": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Gantt.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setLine": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Line.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setMSArea2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_MSArea2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    

    
    "setMSBar2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_MSBar2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
    "setMSColumn2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_MSColumn2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    }, 
    "setMSColumn2DLineDY": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_MSColumn2DLineDY.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
      "setMSColumn3D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_MSColumn3D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    }, 
    "setMSColumn3DLineDY": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_MSColumn3DLineDY.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
   "setMSLine": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_MSLine.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
     "setPie2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Pie2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
     "setPie3D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_Pie3D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
   "setStackedArea2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_StackedArea2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
   "setStackedBar2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_StackedBar2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
   "setStackedColumn2D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_StackedColumn2D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    },
    
   "setStackedColumn3D": function(caption, xAxisName, yAxisNam, type) {
        var chart = new FusionCharts("../../Charts/FCF_StackedColumn3D.swf", "ChartId", "600", "350");
        var xml = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><graph caption='" +
        caption + "' xAxisName='" + xAxisName + "' yAxisName='" + yAxisNam + "' decimalPrecision='0' baseFontSize='12' formatNumberScale='0'>";
        xml += document.getElementById(type + "XML").innerHTML.toLowerCase();
        chart.setDataXML(xml);
        chart.render("chart" + type);
    }
}